package main

import (
	"fmt"
	"m12rpc/http_rpc/client/user"
	"m12rpc/http_rpc/client/user_stub"
	"runtime"
	"time"
)

func main() {

	//if len(os.Args) != 2 {
	//	fmt.Println("Usage: ", os.Args[0], "server")
	//	os.Exit(1)
	//}
	address := "127.0.0.1"
	user_stub.InitUserStub(address)
	for i := 1; i < 10; i++ {
		go user.RPCTEST()
		fmt.Println("线程 ：", i)
		runtime.Gosched()
	}
	time.Sleep(3)
	runtime.Gosched()

}
